package com.ruoyi.his.mapper;

import com.ruoyi.his.domain.TMedicalDrugsPharmacy;
import com.ruoyi.his.domain.vo.TMedicalDrugsPharmacyVo;

import java.util.List;

/**
 * 药房Mapper接口
 * 
 * @author ruoyi
 * @date 2021-09-10
 */
public interface TMedicalDrugsPharmacyMapper 
{
    /**
     * 查询药房
     * 
     * @param pharmacyid 药房主键
     * @return 药房
     */
    public TMedicalDrugsPharmacy selectTMedicalDrugsPharmacyByPharmacyid(Long pharmacyid);

    /**
     * 查询药房列表
     * 
     * @param tMedicalDrugsPharmacy 药房
     * @return 药房集合
     */
    public List<TMedicalDrugsPharmacyVo> selectTMedicalDrugsPharmacyList(TMedicalDrugsPharmacyVo tMedicalDrugsPharmacy);

    /**
     * 新增药房
     * 
     * @param tMedicalDrugsPharmacy 药房
     * @return 结果
     */
    public int insertTMedicalDrugsPharmacy(TMedicalDrugsPharmacy tMedicalDrugsPharmacy);

    /**
     * 修改药房
     * 
     * @param tMedicalDrugsPharmacy 药房
     * @return 结果
     */
    public int updateTMedicalDrugsPharmacy(TMedicalDrugsPharmacy tMedicalDrugsPharmacy);

    /**
     * 删除药房
     * 
     * @param pharmacyid 药房主键
     * @return 结果
     */
    public int deleteTMedicalDrugsPharmacyByPharmacyid(Long pharmacyid);

    /**
     * 批量删除药房
     * 
     * @param pharmacyids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTMedicalDrugsPharmacyByPharmacyids(Long[] pharmacyids);
}
